package cn.leo.dynamic_multi_datasource.config;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

import java.util.Map;

/**
 * 從配置文件中讀取配置，可以增加相關配置
 * @author leo.z.l
 * @create 2019-09-09  14:35
 */

@Component
@ConfigurationProperties("spring.datasource")
public class DatasourceConfig {

    private Map<String,Object> mulitidatasource;

    private Map<String,Object> druid;

    public Map<String, Object> getMulitidatasource() {
        return mulitidatasource;
    }

    public void setMulitidatasource(Map<String, Object> mulitidatasource) {
        this.mulitidatasource = mulitidatasource;
    }

    public Map<String, Object> getDruid() {
        return druid;
    }

    public void setDruid(Map<String, Object> druid) {
        this.druid = druid;
    }
}
